package lanxing.future.base.chapter10;

/**
 * @author <a href="mailto:lanxing@chances.com.cn">lanxing</a>
 * @version 2019年8月3日
 *
 */
public class AnoymousConstructor{
    public Base getBase(Integer i) {
        return new Base(i) {
            {System.out.println("inside instance initializer");}
            
            public void f() {
                System.out.println("in anoymous f()");
            }
        };
    }
    
    public static void main(String[] args) {
//        Base base = getBase(39);
//        
//        base.f();
        
        AnoymousConstructor a  = new AnoymousConstructor();
        
        a.getBase(10);
        
    }
}
